package com.dhsc.local.dao.impl.xtqxgl;

import com.dhsc.domain.ywzx.xtqxgl.XtyhrzVo;
import com.dhsc.local.dao.xtqxgl.IXtyhrzDao;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName: XtyhrzDaoImpl
 * @Description: 系统用户认证
 * @date: 2023/11/14 13:57
 * @author: gx
 */
@Repository("xtyhrzdao")
public class XtyhrzDaoImpl implements IXtyhrzDao {

    @Autowired
    private SqlSessionTemplate localSqlSessionTemplate;

    @Override
    public List<XtyhrzVo> queryXtyhrz(XtyhrzVo xtyhrzVo) {
        return localSqlSessionTemplate.selectList("XtyhrzMapper.queryXtyhrz",xtyhrzVo);
    }

    @Override
    public List<XtyhrzVo> queryYhxx(XtyhrzVo xtyhrzVo) {
        return localSqlSessionTemplate.selectList("XtyhrzMapper.queryYhxx",xtyhrzVo);
    }

    @Override
    public List<XtyhrzVo> queryYhxxByDhzb(XtyhrzVo xtyhrzVo) {
        return localSqlSessionTemplate.selectList("XtyhrzMapper.queryYhxxByDhzb",xtyhrzVo);
    }

    @Override
    public int insertXtyhrz(XtyhrzVo xtyhrzVo) {
        return localSqlSessionTemplate.update("XtyhrzMapper.updateXtyhrz",xtyhrzVo);
    }

    @Override
    public int deleteXtyhrz(XtyhrzVo xtyhrzVo) {
        return localSqlSessionTemplate.update("XtyhrzMapper.deleteXtyhrz",xtyhrzVo);
    }
}
